"""
len函数
"""


class Company(object):
    def __init__(self, employee_list):
        self.employee_list = employee_list

    def __len__(self):
        """
        长度
        """
        return len(self.employee_list)


if __name__ == '__main__':
    company = Company(["Kevin", "葛小伦", "天使彦"])

    # 性能高，不需要每次进行遍历
    print(len(company))
    # 输出结果：3
